<!DOCTYPE html>
<html>
  <head>
    <title>登录页面</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <!-- Bootstrap -->
    <link href="View/FHL/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="View/FHL/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
    <link href="View/FHL/assets/styles.css" rel="stylesheet" media="screen">
    <link href="View/FHL/vendors/jGrowl/jquery.jgrowl.css" rel="stylesheet" media="screen">
     <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="View/FHL/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
  </head>
  <body id="login">
    <div class="container">

      <form class="form-signin"  id="form">
        <h2 class="form-signin-heading">登录</h2>
        <input type="text" class="input-block-level" id="user" name="user" placeholder="用户名">
        <input type="password" class="input-block-level"  id="pass" name="pass" placeholder="密码">
        <label class="checkbox">
          <input type="checkbox" value="remember-me"> 记住密码
        </label>
        <button class="btn btn-large btn-primary"  id="login_submit" type="submit">登录</button>
      </form>

    </div> <!-- /container -->
    <script src="View/FHL/vendors/jquery-1.9.1.min.js"></script>
    <script src="View/FHL/bootstrap/js/bootstrap.min.js"></script>
    <script src="View/FHL/vendors/jGrowl/jquery.jgrowl.js"></script>
  </body>
</html>
<script>
  $('#form').submit(function() {return false;});
  $("#login_submit").click(function(){
    var postdata = $('#form').serialize();
    <!--{hook t_user_login_js_1}-->
    $.post("{php HYBBS_URL('user','login');}", postdata,  function(e){
      <!--{hook t_user_login_js_2}-->
      if(e.error){
        if(e.url !='' && e.url != 'NULL' && e.url != 'null')
       //   $.jGrowl(e.url+'11{#WWW}');
        window.location.href="{#WWW}";
        else
          window.location.href="{#WWW}";
      }else{

        $.jGrowl(e.info);
      }
      <!--{hook t_user_login_js_3}-->
    },'json');
    <!--{hook t_user_login_js_4}-->
  })
</script>